package part15;

/**
 * @author wcj
 * @Date 2021/5/28 20:00
 * @Version 1.0
 */
public class Part151 {

    private Automobile a;

    public Part151(Automobile a) {
        this.a = a;
    }

    public Automobile getA() {
        return a;
    }

    /**
     * JDK1.5之前的做法，让一个类可以持有其它任意类型的类
     */
    private Object o;

    public Part151(Object o) {
        this.o = o;
    }
}

class Automobile {
}
